package com.risk.ctrl.credit.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 日志表
 * @Author: jeecg-boot
 * @Date: 2025-10-05
 * @Version: V1.0
 */
@Data
@TableName("api_call_log")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ApiCallLog {

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    /**
     * AppKey
     */
    private String appKey;
    /**
     * 签名
     */
    private String appSign;
    /**
     * 接口类型;默认0
     */
    private Integer apiType;
    /**
     * 调用时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date callTime;
    /**
     * 调用结果
     */
    private String callResult;
    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
